home *** CD-ROM | disk | FTP | other *** search
- property tix, tixV, zP, mmV, horseSprite
- global gmObject, sndObject
-
- on beginSprite me
- gmObject.backCounter = 30
- horseSprite = gmObject.horseSprites[5]
- horseSprite.frame = 1
- play frame horseSprite
- tixV = 4
- tix = the ticks + tixV
- sndObject.respondSnd(3, 3)
- end
-
- on exitFrame me
- if (horseSprite.playing = 0) and (soundBusy(1) = 0) then
- gmObject.changeHorse(1)
- end if
- go(the frame)
- end
-
- on idle
- if the keyDownScript = EMPTY then
- zP = horseSprite.locH
- if the ticks > tix then
- mmV = (the mouseH - zP) / 15
- gmObject.mouseHX(mmV)
- tix = the ticks + tixV
- end if
- end if
- end
-